import request from '@/utils/request'

export function operate(data) {
  return request({
    url: '/manager/area/delArea',
    method: 'post',
    data
  })
}

export function getAreaList(data) {
  return request({
    url: '/manager/area/list',
    method: 'post',
    data
  })
}

export function createArea(data) {
  return request({
    url: '/manager/area/create',
    method: 'post',
    data
  })
}

export function getAreaDetail(data) {
  return request({
    url: '/manager/area/detail',
    method: 'post',
    data
  })
}

export function changeAreaModify(data) {
  return request({
    url: '/manager/area/modify',
    method: 'post',
    data
  })
}

export function getAreaCascade(data) {
  return request({
    url: '/manager/area/areaCascadeSupply',
    method: 'post',
    data
  })
}

export function getAreaCascadeSupply(data) {
  return request({
    url: '/manager/area/areaCascadeSupply',
    method: 'post',
    data
  })
}

export function getAreaTypes(data) {
  return request({
    url: '/manager/area/areaTypes',
    method: 'post',
    data
  })
}
